<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.js"></script>
    <script>
        console.log(_.cloneDeep)
        var obj1 = {
            a:1,
            b:2,
            list:[
                {id:1,name:'zs'}
            ]
        }

        var obj2 = {
            list:[
                {id:2,name:'lisi'}
            ]
        }

        console.log({...obj1,...obj2})
    </script>
</body>
</html>